package com.cskaoyan.mapper;

import com.cskaoyan.bean.Student;
import org.apache.ibatis.annotations.Param;

public interface StudentMapper {

    // 需求：根据学生名字查询出学生信息以及学生的选课信息

    // 分次查询
    Student selectStudentByNameWithCourseList(@Param("name") String name);


    // 连接查询
    Student selectStudentByIdWithCourseListUseCrossQuery(@Param("id") Integer id);
}
